package com.hotmocha.jclient.comm;

public enum StatusEnum {
    SUCCESS(0, "ok"),
    OBJTOJSONERR(-1, "object to json error"),
    SENDDATAERR(-2, "send date error"),
    CONNECTERR(-3, "connect to server error"),
    CLASSTYPEERR(-4, "class type error"),
    ;

    private int code;
    private String msg;

    private StatusEnum(int code, String msg) {
        this.setCode(code);
        this.setMsg(msg);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
